<template>
    <button @click="funM">触发函数</button>
</template>
<script setup>
const emit = defineEmits(['fun1','fun2'])

function funM(){
  emit('fun1','lxy')
}

</script>